/*
 *  StaticsUtility.h
 *  MarketDataAnalyzer 2
 *
 *  Created by jiro on 10/10/03.
 *  Copyright 2010 jiro music. All rights reserved.
 *
 */

#pragma once

#import "InterpolatedData.h"

class StaticsUtility {
public:

	static double CalcMean( const InterpolatedData* data );
	
	static double CalcVariance( const InterpolatedData* data );
	
	static double CalcStandardDeviation( const InterpolatedData* data ); 
	
	static double CalcCovariance( const InterpolatedData* data1, const InterpolatedData* data2 );

	static double CalcCorelationCoefficient( const InterpolatedData* data0, const InterpolatedData* data1 );
};